package  org.fantasy.cpp.core.pojo;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Table;

import  org.fantasy.cpp.core.annotation.Field;

@Table("QUERY_MODULE")
@PK({ "page_id", "item_id" })
public class QueryModule {

	@Column("page_id")
	@Field(desc = "页面id", nullable = false)
	private Long pageId;

	@Column("item_id")
	@Field(desc = "条件id", nullable = false)
	private Long itemId;

	@Column("sort")
	@Field(desc = "排序", nullable = false)
	private Integer sort;

	@Column("state")
	@Field(desc = "状态", nullable = false, maxlenth = 3)
	private String state;

	public Long getPageId() {
		return pageId;
	}

	public void setPageId(Long pageId) {
		this.pageId = pageId;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
}